/**
 * 定义主角
 */
JSBoot.define("main", ["rpgConstants"], function() {
	this.id = 0x1;
	this.name = "攻击";
	this.gameContext = null;
	this.properties = {};
	this.init = function() {
		var constants = this.refs.rpgConstants;
		this.properties[constants.HP] = 1000;
		this.properties[constants.ATTACK] = 100;
		this.properties[constants.DEFENSE] = 30;
	}
});

/**
 * 定义怪物
 */
JSBoot.define("monster", ["rpgConstants"], function() {
	this.id = 0x2;
	this.name = "攻击";
	this.gameContext = null;
	this.properties = {};
	this.init = function() {
		var constants = this.refs.rpgConstants;
		this.properties[constants.HP] = 600;
		this.properties[constants.ATTACK] = 20;
		this.properties[constants.DEFENSE] = 80;
	}
});